From: | DonaldWM |
Date: | 07 Aug 99 at 10:24:32 |
Subject: | Menus and Hooks - well, Menus actually. |
From: DonaldWM@stonelawdrive.freeserve.co.uk
>Is this the right way to do shortcuts? How can I >add the <A> graphic?
Menu shortcuts are really easy, just look at the following NewMenu structure:
struct NewMenu main_menu[] =
{
{NM_TITLE,"Main",0,0,0,0,},
{NM_ITEM,"New","N",0,0,0,},
{NM_ITEM,"Load","L",0,0,0,},
{NM_ITEM,"Save","S",0,0,0,},
{NM_ITEM,"About","A",0,0,0,},
{NM_ITEM,"Quit","Q",0,0,0,},
{NM_END,NULL,0,0,0,0,},
};
The keyboard shorcuts are the letters in quotes after the menu item names. So the shortcut for Save is "S". Don't worry about the <A> graphic, intuition adds that automatically.
Hope this helps - I`ve never used guigfx.library so I can't answer the second part of your question.